Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@puppeteer/browsers

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@puppeteer/browsers

Download and launch browsers

  • 1.9.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
830K
decreased by-80.53%
Maintainers
2
Weekly downloads
 
Created

What is @puppeteer/browsers?

@puppeteer/browsers is a package that provides tools for managing browser binaries for Puppeteer. It allows you to download, install, and manage different versions of browsers like Chrome and Firefox, which can be used with Puppeteer for web scraping, automated testing, and other browser automation tasks.

What are @puppeteer/browsers's main functionalities?

Download a specific browser version

This feature allows you to download a specific version of a browser. In this example, it downloads Chrome version 91.0.4472.124.

const { downloadBrowser } = require('@puppeteer/browsers');

(async () => {
  await downloadBrowser('chrome', '91.0.4472.124');
})();

List available browser versions

This feature lists all available versions of a specified browser. In this example, it lists all available versions of Chrome.

const { listBrowserVersions } = require('@puppeteer/browsers');

(async () => {
  const versions = await listBrowserVersions('chrome');
  console.log(versions);
})();

Install a browser

This feature installs a specified version of a browser. In this example, it installs Firefox version 89.0.

const { installBrowser } = require('@puppeteer/browsers');

(async () => {
  await installBrowser('firefox', '89.0');
})();

Other packages similar to @puppeteer/browsers

Keywords

FAQs

Package last updated on 04 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc